export default {
    changeCity (state, city) {
    // 替换原来state下的city的值
        state.city = city
        // 储存本地仓库缓存    预防其他浏览器不支持
        try {
            if (localStorage.city) {
                localStorage.city = city
            }
        } catch (error) {
            
        }
    }
}
